<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
    <META content="IE=7.0000" http-equiv="X-UA-Compatible">
    <TITLE>无标题页</TITLE>
    <META content="text/html; charset=utf-8" http-equiv=Content-Type>
    <LINK rel=stylesheet type=text/css href="__PUBLIC__/Css/Style.css">
    <LINK rel=Stylesheet type=text/css href="__PUBLIC__/css/jquery-ui-1.8.16.custom.css">
    <LINK rel=Stylesheet type=text/css href="__PUBLIC__/css/jquery.cropzoom.css">
    <style>
        * {
            font-size: 12px;
        }

        .buttons {
            line-height: 30px;
            height: 30px;
            width: 80px;
        }
    </style>
    <script src="__PUBLIC__/libs/js/jquery.js" type="text/javascript"></script>

    <script type="text/javascript">

        function check(fr) {
            if (fr.cname.value == "") {
                alert('客户名称不能为空！');
                fr.cname.focus();
                return false
            }
            if (fr.company.value == "") {
                alert('公司名称不能为空！');
                fr.company.focus();
                return false
            }
            if (fr.tel.value == "") {
                alert('电话号码不能为空！');
                fr.tel.focus();
                return false
            }
            return true
        }

        window.onload = function () {
            document.getElementById("cname").focus();
        }
    </script>
</HEAD>
<BODY>
<div id="messWindow" class="messWindow"></div>
<div id="promptWindow" class="promptWindow" align="center">
    <div class="titleBar"></div>

</div>
<ul class="tools" style="line-height:26px;">当前位置：<a href="__APP__/Custom">我的客户 </a> → 客户编辑</ul>
<DIV class="infoBox"><br/><br/><br/>

    <form id="form1" onSubmit="return check(this)" name="form1"
          method="post"  action="__APP__/Custom/changesave/">
        <TABLE width="100%" border=0 align="left" cellPadding=0 cellSpacing=0>
            <TBODY>
            <TR>
                <TD class=infoBoxTd width=68>客户名称：</TD>
                <TD width="446">
                    <INPUT name="cname" class="formTitle" id="cname"
                           style="WIDTH: 300px" value="{$custom.cname}">
                    <input name="id" type="hidden"   value="{$custom.id}" />
                    <SPAN></SPAN><LABEL>必须填写</LABEL></TD>
            </TR>
            <TR>
            <TR>
                <TD class=infoBoxTd width=68>公司名称：</TD>
                <TD width="446">
                    <INPUT name="company" class="formTitle" id="company"
                           style="WIDTH: 300px" value="{$custom.company}"> <SPAN></SPAN>
                    <LABEL>必须填写</LABEL></TD>
            </TR>
            <TR>
                <TD class=infoBoxTd width=68>联系电话：</TD>
                <TD width="446">
                    <INPUT name="tel" class="formTitle" id="tel" style="WIDTH: 300px" value="{$custom.tel}">
                    <SPAN></SPAN><LABEL>必须填写</LABEL></TD>
            </TR>
            <TR>
                <TD class=infoBoxTd width=68>客户地址：</TD>
                <TD width="446">
                    <INPUT name="address" class="formTitle" id="address" style="WIDTH: 300px"
                                       value="{$custom.address}"></TD>
            </TR>
            <TR>
             <TD class=infoBoxTd width=68>客户所在区域：</TD>
                <TD width="446">
                    <select name="area" style="WIDTH: 300px">
                        <volist name="areaList" id="vo">
                            <option value="{$vo['area_id']}"  <?php
                             if($vo['area_id']==(int)$custom['area_id'])
                               echo ' selected="selected" ';
                            ?>
                            >
                             {$vo['area_name']}</option>
                        </volist>
                     </select>
                </TD>
            </TR>
            
            <TR>
                <TD class=infoBoxTd width=68>QQ：</TD>
                <TD width="446"><INPUT name="qq" class="formTitle" id="qq" style="WIDTH: 300px" value="{$custom.qq}">
                </TD>
            </TR>
            <TR>
                <TD class=infoBoxTd width=68>公司主营：</TD>
                <TD width="446">
                    <INPUT name="userproduct" class="formTitle" id="userproduct" style="WIDTH: 300px" value="{$custom.userproduct}">
                </TD>
            </TR>
            <TR>
                <TD class=infoBoxTd width=68>推销产品：</TD>
                <TD width="446">
                    <select name="product" class="selector" style="WIDTH: 300px">
                        <volist name="productlist" id="vo">
                            <option value="{$vo['id']}" <?php
                                    if((int)$custom['product']==$vo['id'])
                                    echo ' selected="selected" ';  ?> >{$vo['name']}</option>
                        </volist>
                    </select></TD>
            </TR>
            <TR>
                <TD class=infoBoxTd width=68>客户类型：</TD>
                <TD width="446">

                    <UL class=virtue>
                        <volist name="custtypelist" id="vo">
                            <LI>{$vo['name']}
                                <INPUT name="level" value="{$vo['id']}" type="radio" <?php if((int)$custom['level']==$vo['id']) echo 'checked'?> /></LI>
                        </volist>
                    </UL>
                </TD>
            </TR>
            <TR>
                <TD class=infoBoxTd>&nbsp;</TD>
                <TD>
                    <input class="buttons" type="submit" value="保存数据"/></TD>
            </TR>
            </TBODY>
        </TABLE>
    </FORM>
</DIV>
</BODY>
</HTML>